//
//  TextBookUnitSourceListModel.h
//  Learn
//
//  Created by cjg.mini on 2024/4/10.
//  Copyright © 2024 迟建国. All rights reserved.
//

#import "BaseModel.h"

// 单词
@interface TextBookUnitWordModel : NSObject

@property (nonatomic, strong)   NSString *pretations;
@property (nonatomic, strong)   NSString *sentFile;
@property (nonatomic, strong)   NSString *sentences;
@property (nonatomic, strong)   NSString *syllable;
@property (nonatomic, strong)   NSString *symbol;
@property (nonatomic, strong)   NSString *wId;
@property (nonatomic, strong)   NSString *wordFile;
@property (nonatomic, strong)   NSString *wordPic;
@property (nonatomic, assign)   NSInteger wordType;
@property (nonatomic, strong)   NSString *words;
@property (nonatomic, assign)   BOOL isRead;
@property (nonatomic, assign)   CGFloat totalScore;//总分
@property (nonatomic, assign)   CGFloat completionDegree;//完成度
@property (nonatomic, assign)   CGFloat fluentDegree;//流利度
@property (nonatomic, assign)   CGFloat accurateDegree;//准确度

@property (nonatomic, strong)   NSString *recordPath;
@property (nonatomic, strong)   NSString *recordUrl;

@end

// 课文
@interface TextBookUnitTextModel : NSObject

@property (nonatomic, strong)   NSString *answer;
@property (nonatomic, strong)   NSString *audioUrl;
@property (nonatomic, strong)   NSString *content;
@property (nonatomic, assign)   NSUInteger duration;
@property (nonatomic, strong)   NSString *imgUrl;
@property (nonatomic, strong)   NSString *name;
@property (nonatomic, strong)   NSString *resourceModuleId;
@property (nonatomic, strong)   NSString *role;
@property (nonatomic, assign)   NSInteger start;
@property (nonatomic, assign)   NSInteger subjectType;
@property (nonatomic, strong)   NSString *translate;
@property (nonatomic, strong)   NSString *versionId;
@property (nonatomic, assign)   BOOL isRead;
@property (nonatomic, assign)   CGFloat totalScore;//总分
@property (nonatomic, assign)   CGFloat completionDegree;//完成度
@property (nonatomic, assign)   CGFloat fluentDegree;//流利度
@property (nonatomic, assign)   CGFloat accurateDegree;//准确度

@property (nonatomic, strong)   NSString *recordPath;
@property (nonatomic, strong)   NSString *recordUrl;
@end

// 听写
@interface TextBookUnitLessonModel : NSObject

@property (nonatomic, strong)   NSString *pretations;
@property (nonatomic, strong)   NSString *sentFile;
@property (nonatomic, strong)   NSString *sentences;
@property (nonatomic, strong)   NSString *syllable;
@property (nonatomic, strong)   NSString *symbol;
@property (nonatomic, strong)   NSString *wId;
@property (nonatomic, strong)   NSString *wordFile;
@property (nonatomic, strong)   NSString *wordPic;
@property (nonatomic, assign)   NSInteger wordType;
@property (nonatomic, assign)   NSInteger words;

@end

@interface TextBookUnitSourceListModel : BaseModel

@property (nonatomic, strong)   NSString *resmain;

@property (nonatomic,  strong) NSMutableArray <TextBookUnitWordModel *>  * wordResource;
@property (nonatomic,  strong) NSMutableArray <TextBookUnitTextModel *>  * textResource;
@property (nonatomic,  strong) NSMutableArray <TextBookUnitLessonModel *>  * lessonResource;

@end

